<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>">
<title>帖子</title>
<script src="js/jquery-1.9.0.js" type="text/javascript"></script>
<script src="js/index.menu.js" type="text/javascript"></script>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="js/topic.js"></script>
</head>
<link href="css/common.css" type="text/css" rel="stylesheet" />

<body>
	<div id="container">
		<div id="header">
			<jsp:include page="header.jsp"></jsp:include>
		</div>
		<div id="content">
		<form id="topicForm" name="topicForm" method="post" action="front/topic!addTopic">
		<table width="100%" >
      <tr>
        <td>标题：</td>
        <td>
          <input type="text" name="title" id="title" />
           <input type="hidden" name="userId" id="userId" value="<s:property value='%{#session.user.id}' />" />
           <input type="hidden" name="newsId" id="newsId" value="<s:property value="topicInfor.newsId" />" />
        </td>
      </tr>
      <tr>
        <td>正文：</td>
        <td><textarea cols="80" id="topicContent" name="topicContent" rows="10"></textarea></td>
      </tr>
      <tr>
        <td colspan="2" style="text-align:center">
         
           <input id="send" type="button" value="发表" /><input type="reset" name="cancel" id="cancel" value="重置" />
        <ckeditor:replace replace="topicContent" basePath="/ckeditor/" />
        </td>
      </tr>
    </table>
	</form>		
		</div>
		<div id="footer">
			<jsp:include page="footer.jsp"></jsp:include>
		</div>
	</div>
</body>
</html>